package com.sunday.electric.adapter;

import android.content.Context;

import com.sunday.common.adapter.CommenAdapter;
import com.sunday.common.adapter.ViewHolder;
import com.sunday.electric.R;
import com.sunday.electric.entity.RecentItem;

import java.util.List;

/**
 * Created by wang on 2016/4/3.
 */
public class RecentAdapter extends CommenAdapter<RecentItem> {
    public RecentAdapter(Context context, List<RecentItem> mDatas, int itemLayoutId) {
        super(context, mDatas, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder helper, RecentItem item) {
        helper.setText(R.id.name,item.getName());
        helper.setText(R.id.content,item.getMessage());
    }
}
